import request from '@/utils/request.js'

export const getUserInfo = ({ username, password }) => {
  return request.post('/h5/user/login', { username, password })
}
export const UserRegister = ({ username, password }) => {
  return request.post('/h5/user/register', { username, password })
}
export const getUserDetail = () => {
  return request.get('/h5/user/currentUser')
}
